﻿using Shop.Model.DB;
using Shop.Model.Stock;

namespace Shop.Repository
{
    public interface IGoodsStockRepository : IShopBaseRepository<DBGoodsStock, long>
    {
        bool AddStock (StockAdd add, long verId);
        Dictionary<long, int> GetStocks (long goodsId);
        Result[] GetStocks<Result> (long[] goodsId) where Result : class, new();
        void InitStock (long goodsId, long userId, Dictionary<long, int> stock);
        void LockStock (Dictionary<long, int> set);
    }
}